<?php

namespace common\models\ar;

use Yii;

/**
 * This is the model class for table "change_cache".
 *
 * @property int $id
 * @property int $userid
 * @property int $change_type 1为用户信息修改,2为用户资金变更
 */
class ChangeCache extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'change_cache';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid'], 'required'],
            [['userid', 'change_type'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'userid' => 'Userid',
            'change_type' => 'Change Type',
        ];
    }
}
